;------------------------------------------------------------
;
; Events file for Kyokujitsu
;
; By: DarthVeda
; June 7, 2002
; Last Change: Version .9b
; Events for March 1941 - June 1941
; Copyright (C) 2000, 2001, 2002
;
;------------------------------------------------------------

;------------------------------------------------------------
; Flags Used
;
; The following flags have been used.
;
; ***Red Army***
; - Cease-Fire Active - Flag Tech 25 (93)
; ***Chinese***
; 0 - Objective
; 1 - Wuhan Surprise already tripped
; - Nanking Captured Early - Flag Tech 1 (33)
; - Communist Base - Flag Tech 2 (36)
; - Southern Offensive - Flag Tech 4 (40)
; - Wuhan Surprise - Flag Tech 5 (41)
; ***IJA***
; - Defeat Russia #2 - Flag Tech 3 (39)
; - Defeat Russia #1 - Flag Tech 2 (36)
; - Built IJA Conscriptor = Flag Tech 1 (33)
; ***IJN***
; 0 - Conscriptor Bonus for Army/Navy
; - Built IJN Conscriptor - Flag Tech 1 (33)
; - Have IJN Air Factory - Flag Tech 2 (39) 
;
;------------------------------------------------------------

@BEGINEVENTS

; @DEBUG

@INITFLAG

;------------------------------------------------------------
;
; Flag Events
;
; Flag managing events.
;
;------------------------------------------------------------

@IF
ScenarioLoaded
@AND
ReceivedTechnology
receiver=Chinese
technology=41
@THEN
Flag
Continuous
who=Chinese
state=On
flag=1
@ENDIF

;------------------------------------------------------------
;
; Equalizer Events
;
; Event to keep national economy from inflating like crazy
;
;------------------------------------------------------------

@IF
Turn
turn=Every
@THEN
Changemoney
receiver=IJA
amount=-120
@ENDIF

@IF
Turn
turn=Every
@THEN
Changemoney
receiver=IJN
amount=-120
@ENDIF

;------------------------------------------------------------
;
; Negotiations Event
;
; Prevent the cowardly AI's from making peace and what not
;
;------------------------------------------------------------

@IF
Negotiation
talker=Anybody
talkertype=HumanOrComputer
listener=Anybody
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
Turn
turn=Every
@THEN
MakeAgression
who=Chinese
whom=IJA
@ENDIF

@IF
Turn
turn=Every
@THEN
MakeAgression
who=Chinese
whom=IJN
@ENDIF

; No invading Russia!

@IF
CityTaken
city=AnyCity
attacker=IJA
defender=Red Army
@THEN
Text
^ Your violoation of the cease-fire with Russia has
cost you your job.  YOU HAVE BEEN RELIEVED.
endtext
DestroyACivilization
whom=IJA
@ENDIF

@IF
CityTaken
city=AnyCity
attacker=IJN
defender=Red Army
@THEN
Text
^ Your violoation of the cease-fire with Russia has
cost you your job.  YOU HAVE BEEN RELIEVED.
endtext
DestroyACivilization
whom=IJN
@ENDIF

; No attacking the Allies!

@IF
UnitKilled
unit=AnyUnit
attacker=IJA
Defender Only
defender=Allies
@THEN
Text
^ Your premature attack on the United States is unacceptable.
YOU HAVE BEEN RELIEVED.
endtext
DestroyACivilization
whom=IJA
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=IJN
Defender Only
defender=Allies
@THEN
Text
^ Your premature attack on the United States is unacceptable.
YOU HAVE BEEN RELIEVED.
endtext
DestroyACivilization
whom=IJN
@ENDIF

;------------------------------------------------------------
;
; Japanese Requesition Events
;
; The following events will allow the Japanese player to
; acquire additional units
;
;------------------------------------------------------------

;Begin IJA Infantry

@IF
ReceivedTechnology
receiver=IJA
technology=51
@THEN
CreateUnit
owner=IJA
unit=Nipponese
Count=3
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=50
@THEN
CreateUnit
owner=IJA
unit=Nipponese
Count=3
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=49
@THEN
CreateUnit
owner=IJA
unit=Nipponese
Count=2
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=48
@THEN
CreateUnit
owner=IJA
unit=Nipponese
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=51
@THEN
ChangeMoney
receiver=IJA
amount=-45
TakeTechnology
whom=IJA
technology=51
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=50
@THEN
ChangeMoney
receiver=IJA
amount=-45
TakeTechnology
whom=IJA
technology=50
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=49
@THEN
ChangeMoney
receiver=IJA
amount=-45
TakeTechnology
whom=IJA
technology=49
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=48
@THEN
ChangeMoney
receiver=IJA
amount=-45
TakeTechnology
whom=IJA
technology=48
@ENDIF

; end of IJA Infantry
; Begin IJA Fighters
 
@IF
ReceivedTechnology
receiver=IJA
technology=58
@THEN
CreateUnit
owner=IJA
unit=Ki-43 Oscar
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=52
@THEN
CreateUnit
owner=IJA
unit=Ki-43 Oscar
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=52
@THEN
ChangeMoney
receiver=IJA
amount=-80
TakeTechnology
whom=IJA
technology=52
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=58
@THEN
ChangeMoney
receiver=IJA
amount=-80
TakeTechnology
whom=IJA
technology=58
@ENDIF

; end IJA fighters
; Begin IJA Ground Equipment

@IF
ReceivedTechnology
receiver=IJA
technology=62
@THEN
CreateUnit
owner=IJA
unit=Artillery
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=62
@THEN
CreateUnit
owner=IJA
unit=Armored Infantry
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=61
@THEN
CreateUnit
owner=IJA
unit=Artillery
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=61
@THEN
CreateUnit
owner=IJA
unit=Armored Infantry
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=61
@THEN
ChangeMoney
receiver=IJA
amount=-65
TakeTechnology
whom=IJA
technology=61
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=62
@THEN
ChangeMoney
receiver=IJA
amount=-65
TakeTechnology
whom=IJA
technology=62
@ENDIF

; end IJA ground equipment
; Begin IJA Armored 

@IF
ReceivedTechnology
receiver=IJA
technology=85
@THEN
CreateUnit
owner=IJA
unit=Type 97 Tank
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=85
@THEN
ChangeMoney
receiver=IJA
amount=-65
TakeTechnology
whom=IJA
technology=85
@ENDIF

; end IJA Armored
; Begin IJA Bombers

@IF
ReceivedTechnology
receiver=IJA
technology=63
@THEN
CreateUnit
owner=IJA
unit=Ki-21 Sally
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=64
@THEN
CreateUnit
owner=IJA
unit=Ki-21 Sally
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=63
@THEN
ChangeMoney
receiver=IJA
amount=-120
TakeTechnology
whom=IJA
technology=63
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=64
@THEN
ChangeMoney
receiver=IJA
amount=-120
TakeTechnology
whom=IJA
technology=64
@ENDIF

; end IJA Bombers
; Begin IJA Attack Aircraft

@IF
ReceivedTechnology
receiver=IJA
technology=65
@THEN
CreateUnit
owner=IJA
unit=Ki-51 Sonia
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=68
@THEN
CreateUnit
owner=IJA
unit=Ki-51 Sonia
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=65
@THEN
ChangeMoney
receiver=IJA
amount=-100
TakeTechnology
whom=IJA
technology=65
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=68
@THEN
ChangeMoney
receiver=IJA
amount=-100
TakeTechnology
whom=IJA
technology=68
@ENDIF

; end of IJA Attack Aircraft
; Being IJA Transports

@IF
ReceivedTechnology
receiver=IJA
technology=99
@THEN
CreateUnit
owner=IJA
unit=Transport
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=98
@THEN
CreateUnit
owner=IJA
unit=Transport
veteran=No
homecity=Tokyo
locations
78,80,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=99
@THEN
ChangeMoney
receiver=IJA
amount=-80
TakeTechnology
whom=IJA
technology=99
@ENDIF

@IF
ReceivedTechnology
receiver=IJA
technology=98
@THEN
ChangeMoney
receiver=IJA
amount=-80
TakeTechnology
whom=IJA
technology=98
@ENDIF

; end of IJA Transports
; Begin IJN Infantry

@IF
ReceivedTechnology
receiver=IJN
technology=51
@THEN
CreateUnit
owner=IJN
unit=Marines
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=50
@THEN
CreateUnit
owner=IJN
unit=Marines
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=49
@THEN
CreateUnit
owner=IJN
unit=Marines
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=48
@THEN
CreateUnit
owner=IJN
unit=Marines
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=51
@THEN
ChangeMoney
receiver=IJN
amount=-45
TakeTechnology
whom=IJN
technology=51
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=50
@THEN
ChangeMoney
receiver=IJN
amount=-45
TakeTechnology
whom=IJN
technology=50
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=49
@THEN
ChangeMoney
receiver=IJN
amount=-45
TakeTechnology
whom=IJN
technology=49
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=48
@THEN
ChangeMoney
receiver=IJN
amount=-45
TakeTechnology
whom=IJN
technology=48
@ENDIF

; end IJN Infantry
; Begin IJN Fighter

@IF
ReceivedTechnology
receiver=IJN
technology=58
@THEN
CreateUnit
owner=IJN
unit=A5M Claude
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=52
@THEN
CreateUnit
owner=IJN
unit=A6M2 Zero-Sen
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=58
@THEN
ChangeMoney
receiver=IJN
amount=-80
TakeTechnology
whom=IJN
technology=58
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=52
@THEN
ChangeMoney
receiver=IJN
amount=-80
TakeTechnology
whom=IJN
technology=52
@ENDIF

; end IJN Fighter
; Begin IJN Ground Equipment

@IF
ReceivedTechnology
receiver=IJN
technology=62
@THEN
CreateUnit
owner=IJN
unit=Artillery
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=61
@THEN
CreateUnit
owner=IJN
unit=Artillery
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=62
@THEN
ChangeMoney
receiver=IJN
amount=-65
TakeTechnology
whom=IJN
technology=62
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=62
@THEN
ChangeMoney
receiver=IJN
amount=-65
TakeTechnology
whom=IJN
technology=62
@ENDIF

; end IJN Ground Equipment
; begin IJN Bomber

@IF
ReceivedTechnology
receiver=IJN
technology=63
@THEN
CreateUnit
owner=IJN
unit=G3M3 Nell
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=64
@THEN
CreateUnit
owner=IJN
unit=G3M3 Nell
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=63
@THEN
ChangeMoney
receiver=IJN
amount=-120
TakeTechnology
whom=IJN
technology=63
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=64
@THEN
ChangeMoney
receiver=IJN
amount=-120
TakeTechnology
whom=IJN
technology=64
@ENDIF

; end of IJN Bombers
; Begin IJN IJN Attack Aircraft

@IF
ReceivedTechnology
receiver=IJN
technology=65
@THEN
CreateUnit
owner=IJN
unit=D3A1 Val
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=68
@THEN
CreateUnit
owner=IJN
unit=B5N2 Kate
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=65
@THEN
ChangeMoney
receiver=IJN
amount=-100
TakeTechnology
whom=IJN
technology=65
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=68
@THEN
ChangeMoney
receiver=IJN
amount=-100
TakeTechnology
whom=IJN
technology=68
@ENDIF

; end of IJN Attack Aircraft
; Begin IJN Transports

@IF
ReceivedTechnology
receiver=IJN
technology=99
@THEN
CreateUnit
owner=IJN
unit=Transport
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=98
@THEN
CreateUnit
owner=IJN
unit=Transport
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=99
@THEN
ChangeMoney
receiver=IJN
amount=-80
TakeTechnology
whom=IJN
technology=99
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=98
@THEN
ChangeMoney
receiver=IJN
amount=-80
TakeTechnology
whom=IJN
technology=98
@ENDIF

; end IJN Transports
; Begin IJN Submarines

@IF
ReceivedTechnology
receiver=IJN
technology=88
@THEN
CreateUnit
owner=IJN
unit=C-1 Sub
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=88
@THEN
ChangeMoney
receiver=IJN
amount=-180
TakeTechnology
whom=IJN
technology=88
@ENDIF

; end IJN Submarines
; Begin IJN Light Cruisers

@IF
ReceivedTechnology
receiver=IJN
technology=90
@THEN
CreateUnit
owner=IJN
unit=Light Cruiser
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=91
@THEN
CreateUnit
owner=IJN
unit=Light Cruiser
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=90
@THEN
ChangeMoney
receiver=IJN
amount=-320
TakeTechnology
whom=IJN
technology=90
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=91
@THEN
ChangeMoney
receiver=IJN
amount=-320
TakeTechnology
whom=IJN
technology=91
@ENDIF

; end of IJN Light Cruisers
; begin IJN Destroyers

@IF
ReceivedTechnology
receiver=IJN
technology=94
@THEN
CreateUnit
owner=IJN
unit=Destroyer
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=95
@THEN
CreateUnit
owner=IJN
unit=Destroyer
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=96
@THEN
CreateUnit
owner=IJN
unit=Destroyer
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=97
@THEN
CreateUnit
owner=IJN
unit=Destroyer
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=94
@THEN
ChangeMoney
receiver=IJN
amount=-180
TakeTechnology
whom=IJN
technology=94
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=95
@THEN
ChangeMoney
receiver=IJN
amount=-180
TakeTechnology
whom=IJN
technology=95
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=96
@THEN
ChangeMoney
receiver=IJN
amount=-180
TakeTechnology
whom=IJN
technology=96
@ENDIF

@IF
ReceivedTechnology
receiver=IJN
technology=97
@THEN
ChangeMoney
receiver=IJN
amount=-180
TakeTechnology
whom=IJN
technology=97
@ENDIF

;------------------------------------------------------------
; Historical Events
;
; The following events help carve history through China
;
;------------------------------------------------------------

@IF
ScenarioLoaded
@THEN
JustOnce
Text
^------------------------- Briefing -------------------------
endtext
@ENDIF

@IF
ScenarioLoaded 
@THEN
JustOnce
Text
^ High Command has given the Navy the objective of bombing the
Burma road.  The British have been far too arrogant in opening
the road again, High Command believes that bombing the road
would give them a sign of our resolution.
endtext
@ENDIF

@IF
ScenarioLoaded
@THEN
JustOnce
Text
^ High command states that if the Navy is able to bomb the road
before July, that state purses will be opened to purchase a full-time
Aircraft factory for naval aircraft.
endtext
@ENDIF

@IF
ScenarioLoaded
@THEN
JustOnce
CreateUnit
owner=Chinese
unit=Convoy
veteran=No
homecity=None
Randomize
locations
65,35,0
63,35,0
endlocations
@ENDIF

@IF
ScenarioLoaded
@THEN
JustOnce
CreateUnit
owner=Chinese
unit=Convoy
veteran=No
homecity=None
Randomize
locations
68,34,0
66,34,0
endlocations
@ENDIF

;-------------------------------
;
; Wonder Effects
;
;-------------------------------

; Conscriptor randomizer

@IF
RandomTurn
denominator=12
@AND
Turn
turn=49
@THEN
Flag
who=IJN
state=On
flag=0
@ENDIF

; Naval Conscriptor
@IF
CityProduction
builder=IJN
improvement=44
@THEN
GiveTechnology
technology=33
receiver=IJN
@ENDIF

@IF
ReceivedTechnology
technology=33
receiver=IJN
@AND
CheckFlag
who=IJN
flag=0
State=On
@THEN
CreateUnit
owner=IJN
unit=Marines
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
Text
^The IJN has conscripted 2 Extra Marines this season!
endtext
@ENDIF

@IF
ReceivedTechnology
technology=33
receiver=IJN
@AND
Turn
turn=49
@THEN
CreateUnit
owner=IJN
unit=Marines
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

; Army Conscriptor
@IF
CityProduction
builder=IJA
improvement=66
@THEN
GiveTechnology
technology=33
receiver=IJA
@ENDIF

@IF
ReceivedTechnology
technology=33
receiver=IJA
@AND
CheckFlag
who=IJN
flag=0
State=On
@THEN
CreateUnit
owner=IJA
unit=Nipponese
Count=2
veteran=No
homecity=None
locations
78,80,1
endlocations
Text
^The army reports recruitments are up! Two more
^Infantry units were recruited this month.
endtext
@ENDIF

@IF
ReceivedTechnology
technology=33
receiver=IJA
@AND
Turn
turn=49
@THEN
CreateUnit
owner=IJA
unit=Nipponese
Count=2
veteran=No
homecity=None
locations
78,80,1
endlocations
@ENDIF

; - Naval Air Factory

@IF
ReceivedTechnology
technology=39
receiver=IJN
@AND
RandomTurn
denominator=2
@THEN
CreateUnit
owner=IJN
unit=A6M2 Zero-Sen
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
technology=39
receiver=IJN
@AND
RandomTurn
denominator=2
@THEN
CreateUnit
owner=IJN
unit=D3A1 Val
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
technology=39
receiver=IJN
@AND
RandomTurn
denominator=4
@THEN
CreateUnit
owner=IJN
unit=B5N2 Kate
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
ReceivedTechnology
technology=39
receiver=IJN
@AND
RandomTurn
denominator=2
@THEN
CreateUnit
owner=IJN
unit=G3M3 Nell
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

;-------------------------------
;
; Historical Events
;
;-------------------------------

@IF
UnitKilled
unit=AnyUnit
Map=1
attacker=Barbarians
defender=Chinese
@THEN
JustOnce
Text
^ High command is pleased to inform you that the 'love
affair' between the KMT and Mao has apparently ended, as
Chinese communists and KMT soldiers have begun fighting
each other again.
endtext
@ENDIF

@IF
Turn
turn=46
@THEN
Text
^ High Command regrets to inform you that the Americans
have decided to begin reinforcing their bases in the
pacific.  This is no doubtedly in anticipation of war
with Japan.
^
^ In addition, the British have begun mining the area
around Singapore.
endtext
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Sea Mine
veteran=No
homecity=Singapore
Randomize
locations
24,98,0
26,102,0
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Sea Mine
veteran=No
homecity=Singapore
Randomize
locations
29,101,0
27,103,0
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Sea Mine
veteran=No
homecity=Singapore
Randomize
locations
30,98,0
30,100,0
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Sea Mine
veteran=No
homecity=Singapore
Randomize
locations
31,103,0
32,94,0
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Sea Mine
veteran=No
homecity=Singapore
Randomize
locations
32,90,0
31,87,0
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Roughneck
veteran=No
homecity=None
locations
35,123,1
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=F2A Buffalo
veteran=No
homecity=None
locations
35,123,1
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Roughneck
veteran=No
homecity=None
locations
91,115,1
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=F2A Buffalo
veteran=No
homecity=None
locations
91,115,1
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Roughneck
veteran=No
homecity=None
locations
45,107,2
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=F2A Buffalo
veteran=No
homecity=None
locations
45,107,2
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
CreateUnit
owner=Allies
unit=Roughneck
Count=3
veteran=No
homecity=None
locations
95,121,3
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
Text
^ High Command also informs you that it has successfully
concluded a treaty of non-agression with the Soviet Union.
Violations of their territory will not be viewed lightly
by High Command.
endtext
CreateUnit
owner=IJN
unit=Transport
Count=2
veteran=No
homecity=None
locations
57,71,1
endlocations
@ENDIF

@IF
Turn
turn=46
@THEN
Text
^ Part of war preparations plans have been activated. 40,000
tons of shipping have been seized and pressed into service.
The navy and army now have two new transports.
endtext
CreateUnit
owner=IJA
unit=Transport
Count=2
veteran=No
homecity=None
locations
78,80,1
endlocations
@ENDIF

@IF
Turn
turn=47
@THEN
Text
^^------------ The War in Europe -------------
^ The Germans report that they have forced
Greece to Surrender.  They also report
that they have occupied the island of Crete.
^^--------------------------------------------
endtext
@ENDIF

@IF
Turn
turn=48
@THEN
Text
^^OPERATION BARBAROSA
^ June 22, 1941: The Germans launch a massive offensive from Poland,
Slovakia, Romania, Hungary and East Prussia into the Soviet Union.
The coordinated attack employs 133 divisions including 17 armored
and 11 motorized divisions. 
^The invasion stretches over a 1000 mile front from the Baltic 
to the Black sea. 
^In all 3,200,000 men, 3,600 tanks, 600,000 trucks, 7,500 guns and 
2,000 planes take part in the assault.
endtext
@ENDIF

@IF
Turn
turn=48
@THEN
Text
^The Germans are joined by 14 divisions from their Romanian allies
in the Southern sector of the front.
^Hoping to regain their lost territory and seeking revenge for their
defeat in the Winter War of 1939-1940, the Finnish army seizes the
opportunity to advance into the Northwestern Soviet held territories.
^
^THE WAR FOR RUSSIA HAS BEGUN
endtext
@ENDIF

;-------------------------------
;
; Regular Chinese Army Movements
;
;-------------------------------

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
42,22,1
40,26,1
45,25,1
43,33,1
43,29,1
40,20,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
43,29,1
43,33,1
45,25,1
40,26,1
42,22,1
40,20,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=1
veteran=Yes
homecity=None
Randomize
locations
51,21,1
46,32,1
37,37,1
40,20,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Barbarians
unit=Guerillas
Count=4
veteran=Yes
homecity=None
Randomize
locations
30,16,1
34,16,1
29,23,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Barbarians
unit=Guerillas
Count=2
veteran=Yes
homecity=None
Randomize
locations
35,15,1
38,16,1
26,18,1
32,20,1
endlocations
@ENDIF

; The next two events control guerillas between Loyang and Wuhan

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Barbarians
unit=Guerillas
Count=2
veteran=Yes
homecity=None
Randomize
locations
18,32,1
21,33,1
17,31,1
19,35,1
16,32,1
19,39,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Barbarians
unit=Guerillas
veteran=No
homecity=None
Randomize
locations
18,32,1
21,33,1
17,31,1
19,35,1
16,32,1
19,39,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
Count=2
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=3
@THEN
CreateUnit
owner=Chinese
unit=BT-7 Light Tank
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=3
@THEN
CreateUnit
owner=Chinese
unit=BT-7 Light Tank
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=2
@THEN
CreateUnit
owner=Chinese
unit=I-16
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=2
@THEN
CreateUnit
owner=Chinese
unit=3.7 in. Flak
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
UnitKilled
unit=I-16
Map=1
attacker=Anybody
defender=Chinese
@THEN
CreateUnit
owner=Chinese
unit=I-16
veteran=Yes
homecity=None
locations
85,29,0
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=2
@THEN
CreateUnit
owner=Chinese
unit=Artillery
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
15,17,17,17,17,19,15,19
moveto
30,34
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
15,17,17,17,17,19,15,19
moveto
30,34
numbertomove=All
@ENDIF

@IF
Turn
turn=Every
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
11,33,19,33,19,41,11,41
moveto
41,39
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=AnyUnit
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
11,33,19,33,19,41,11,41
moveto
41,39
numbertomove=All
@ENDIF

@IF
RandomTurn
denominator=3
@THEN
CreateUnit
owner=Chinese
unit=Artillery
veteran=Yes
homecity=None
locations
15,37,1
7,37,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
Count=2
veteran=Yes
homecity=None
locations
15,37,1
7,37,1
endlocations
@ENDIF

@IF
RandomTurn
denominator=4
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
veteran=Yes
homecity=None
locations
15,37,1
7,37,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Artillery
attacker=Anybody
Defender Only
defender=Chinese
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
veteran=Yes
homecity=None
locations
11,55,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Artillery
attacker=Anybody
defender=Chinese
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
10,54,12,54,12,56,10,56
moveto
46,22
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=Guerillas
attacker=Anybody
defender=Anybody
@THEN
CreateUnit
owner=Chinese
unit=Machine Gun
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Guerillas
attacker=Anybody
defender=Anybody
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
veteran=Yes
homecity=None
locations
16,18,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Guerillas
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
15,17,17,17,17,19,15,19
moveto
32,20
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=Guerillas
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
31,19,33,19,33,21,31,21
moveto
25,41
numbertomove=All
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
3,49,1
2,40,1
5,53,1
7,49,1
7,53,1
3,45,1
4,42,1
1,51,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
5,53,1
7,49,1
7,53,1
3,45,1
4,42,1
1,51,1
3,49,1
2,40,1
endlocations
@ENDIF

@IF
Turn
turn=Every
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
2,40,1
5,53,1
7,49,1
7,53,1
3,45,1
4,42,1
1,51,1
3,49,1
endlocations
@ENDIF

@IF
Turn
turn=every
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
0,40,10,40,10,54,0,54
moveto
30,48
numbertomove=All
@ENDIF

; The following events control the regular army moving from Changsha

@IF
Turn
turn=every
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
5,33,9,33,9,39,5,39
moveto
46,22
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=AnyUnit
Map=1
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=1
maprect
5,33,9,33,9,39,5,39
moveto
46,22
numbertomove=All
@ENDIF

;-------------------------------
;
; - Wuhan Surprise
;
;-------------------------------

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@THEN
GiveTechnology
technology=41
receiver=Chinese
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Machine Gun
Count=2
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF

@IF
CityTaken
city=Wuhan
attacker=Anybody
defender=Chinese
@AND
CheckFlag
who=Chinese
flag=1
State=Off
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
Count=2
veteran=Yes
homecity=None
Randomize
locations
11,37,1
12,40,1
18,38,1
17,33,1
15,33,1
18,32,1
14,34,1
13,41,1
17,39,1
16,32,1
endlocations
@ENDIF


;-------------------------------
;
; - Southern Defense Force
;
;-------------------------------


@IF
ReceivedTechnology
receiver=Chinese
technology=40
@AND
RandomTurn
denominator=3
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
Count=2
veteran=No
homecity=None
locations
74,38,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@AND
RandomTurn
denominator=2
@THEN
CreateUnit
owner=Chinese
unit=Machine Gun
veteran=Yes
homecity=None
locations
74,38,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
veteran=No
homecity=None
locations
74,38,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
veteran=No
homecity=None
locations
74,36,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
veteran=Yes
homecity=None
locations
85,29,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=0
maprect
73,37,75,37,75,39,73,39
moveto
86,48
numbertomove=All
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@AND
RandomTurn
denominator=3
@THEN
CreateUnit
owner=Chinese
unit=Cavalry
veteran=Yes
homecity=None
locations
96,42,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@AND
RandomTurn
denominator=2
@THEN
CreateUnit
owner=Chinese
unit=Chinese Regulars
veteran=Yes
homecity=None
locations
96,42,0
endlocations
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
MoveUnit
unit=AnyUnit
owner=Chinese
Map=0
maprect
95,41,97,41,97,43,95,43
moveto
71,49
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=Chinese Irregulars
Map=0
attacker=Anybody
defender=Anybody
@THEN
CreateUnit
owner=Chinese
unit=Chinese Irregulars
veteran=Yes
homecity=None
Randomize
locations
76,48,0
92,40,0
80,38,0
78,44,0
91,45,0
94,54,0
83,43,0
endlocations
@ENDIF

@IF
UnitKilled
unit=AnyUnit
Map=0
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=Chinese Irregulars
owner=Chinese
Map=0
maprect
71,39,81,39,81,55,71,55
moveto
71,49
numbertomove=All
@ENDIF

@IF
UnitKilled
unit=AnyUnit
Map=0
attacker=Anybody
defender=Anybody
@THEN
MoveUnit
unit=Chinese Irregulars
owner=Chinese
Map=0
maprect
81,35,97,35,97,61,81,61
moveto
86,48
numbertomove=All
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
MoveUnit
unit=Chinese Irregulars
owner=Chinese
Map=0
maprect
71,39,81,39,81,55,71,55
moveto
71,49
numbertomove=All
@ENDIF

@IF
ReceivedTechnology
receiver=Chinese
technology=40
@THEN
MoveUnit
unit=Chinese Irregulars
owner=Chinese
Map=0
maprect
81,35,97,35,97,61,81,61
moveto
86,48
numbertomove=All
@ENDIF

;------------------------------------------------------------
;
; Objective Area
;
; This rewards the player for meeting various objectives.
;
;------------------------------------------------------------

; - Bomb Burma Road.  Expires at end of events file.

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
GiveTechnology
technology=39
receiver=IJN
@ENDIF

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
BestowImprovement
improvement=60
race=IJN
capital=Yes
wonders=Yes
@ENDIF

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
Text
^ High Command congratulates the navy on successfully
putting fear into all who would dare supply our enemy
China.
^
^ The New Air Factory will supply our naval war effort
with planes of every design.
endtext
@ENDIF

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
Text
^ Also, they have given the Navy a one-time gift
of 2 A6M2 Zero-Sen and 2 D3A1 Val.
endtext
@ENDIF

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
CreateUnit
owner=IJN
unit=A6M2 Zero-Sen
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

@IF
UnitKilled
unit=Convoy
Map=0
attacker=IJN
Defender Only
defender=Anybody
@THEN
JustOnce
CreateUnit
owner=IJN
unit=D3A1 Val
Count=2
veteran=No
homecity=Hiroshima
locations
57,71,1
endlocations
@ENDIF

;------------------------------------------------------------
;
; File Change Statement
;
; The part of the program where we make the User work for
; their enjoyment :)
;
;------------------------------------------------------------

@IF
Turn
turn=49
@THEN
Text
^ The clouds of war loom in the Pacific as the Americans
have continued to pressure us in Nomura-Hull meetings on
the issue of our legitimate force in China.  Also, our
attempts to secure Dutch supplies of oil have been rejected,
which leaves us with a majority of our supply coming from
the United States.
endtext
@ENDIF

@IF
Turn
turn=49
@THEN
Text
^You are ready to play part 13 of Kyokujitsu!
endtext
@ENDIF

@ENDEVENTS